<!DOCTYPE html>
<html lang="zh">

<head>
    <title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=0.4">
    <link rel="shortcut icon" href="{:sysconf('site_icon')}">
    <link rel="stylesheet" href="__ROOT__/static/plugs/awesome/fonts.css?at={:date('md')}">
    <link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
    <link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
     <!-- 加入自定义css 开始 1-->
     <!-- <link rel="stylesheet" href="__ROOT__/static/theme/css/my.css?at={:date('md')}"> -->
    
     <!-- 加入自定义css 结束1 -->
    {block name="style"}{/block}
    <script>window.tapiRoot = '{:sysuri("admin/index/index",[],false)}'</script>
    <script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
</head>

<body class="layui-layout-body">
{block name='body'}
<div class="layui-layout layui-layout-admin layui-layout-left-hide">
    <div class="layui-body" style="top:0">{block name='content'}{/block}</div>
</div>
{/block}
<script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
<script src="__ROOT__/static/plugs/require/require.js"></script>
<script type="text/javascript">            
    requirejs.config({
        baseUrl: "/editor/lib/",
        paths: {
            jquery          : "/editor/examples/js/jquery.min",
            marked          : "/editor/lib/marked.min",
            prettify        : "/editor/lib/prettify.min",
            raphael         : "/editor/lib/raphael.min",
            underscore      : "/editor/lib/underscore.min",
            flowchart       : "/editor/lib/flowchart.min", 
            jqueryflowchart : "/editor/lib/jquery.flowchart.min", 
            sequenceDiagram : "/editor/lib/sequence-diagram.min",
            //katex           : "//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.1.1/katex.min",
            katex           : "/editor/lib/katex.min",
            editormd        : "/editor/editormd.amd" // Using Editor.md amd version for Require.js
        },
        waitSeconds: 30
    });
    
    var deps = [
        "editormd", 
        "/editor/languages/zh-cn.js", 
        "/editor/plugins/link-dialog/link-dialog.js",
        "/editor/plugins/reference-link-dialog/reference-link-dialog.js",
        "/editor/plugins/image-dialog/image-dialog.js",
        "/editor/plugins/code-block-dialog/code-block-dialog.js",
        "/editor/plugins/table-dialog/table-dialog.js",
        "/editor/plugins/emoji-dialog/emoji-dialog.js",
        "/editor/plugins/goto-line-dialog/goto-line-dialog.js",
        "/editor/plugins/help-dialog/help-dialog.js",
        "/editor/plugins/html-entities-dialog/html-entities-dialog.js", 
        "/editor/plugins/preformatted-text-dialog/preformatted-text-dialog.js"
    ];

  
</script>

<script src="__ROOT__/static/admin.js"></script>
<script src="/static/plugs/tinymce/tinymce.min.js"></script>
{block name='script'}{/block}
</body>

</html>